import request from '@/utils/request'

export function getSiteCrcByPtsId (parameter) {
  return request({
    url: '/boss/project/team/getSiteCrcByPtsId',
    method: 'get',
    params: parameter
  })
}
export function getUrgeStatus (parameter) {
  return request({
    url: '/v2/boss/project/apply/urgeStatus',
    method: 'get',
    params: parameter
  })
}
export function auditList (parameter) {
  return request({
    url: '/v2/boss/project/apply/finance/list',
    method: 'get',
    params: parameter
  })
}
export function info (parameter) {
  return request({
    url: '/v2/boss/project/apply/detail',
    method: 'get',
    params: parameter
  })
}
export function tax (parameter) {
  return request({
    url: '/boss/project/apply/taxUpdate',
    method: 'post',
    data: parameter
  })
}
export function switchAudit (parameter) {
  return request({
    url: '/v2/boss/project/apply/audit',
    method: 'post',
    data: parameter
  })
}
export function auditSpecial (parameter) {
  return request({
    url: '/v2/boss/project/apply/auditSpecial',
    method: 'post',
    data: parameter
  })
}
export function applyTax (parameter) {
  return request({
    url: '/v2/boss/project/apply/tax',
    method: 'post',
    data: parameter
  })
}
export function processListAudit (parameter) {
  return request({
    url: '/v2/boss/project/apply/listAudit',
    method: 'get',
    params: parameter
  })
}
export function getCostExport (parameter) {
  return request({
    url: '/boss/project/apply/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
export function reversePayStatus (parameter) {
  return request({
    url: '/v2/boss/project/apply/reversePayStatus',
    method: 'post',
    params: parameter
  })
}
export function costRecordPay (parameter) {
  return request({
    url: '/v2/boss/project/apply/finance/commit',
    method: 'post',
    params: parameter
  })
}
export function preCheckForFinanceAudit (parameter) {
  return request({
    url: '/v2/boss/project/apply/crc/preCheckForFinanceAudit',
    method: 'post',
    params: parameter
  })
}

export function getAuditCheck (parameter) {
  return request({
    url: '/v2/boss/project/apply/auditCheck',
    method: 'get',
    params: parameter
  })
}
